package com.darling.danotebackend.mapper;

import com.darling.danotebackend.model.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author zheng
 * @description 针对表【t_user(用户)】的数据库操作Mapper
 * @createDate 2025-02-10 15:45:37
 * @Entity com.darling.danotebackend.model.entity.User
 */
public interface UserMapper extends BaseMapper<User> {

    @Update(" update t_user set userAvatar = #{userAvatar} where id = #{id} ")
    boolean updateAvatar(@Param("userAvatar") String userAvatar, @Param("id") Long id);

    @Update(" update t_user set userPassword = #{userPassword} where id = #{id} ")
    long updatePwdById(@Param("id") Long id, @Param("userPassword") String userPassword);


}




